home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-06-20 | 4.4 KB | [TEXT/MMCC] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: StripFile.cpp
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Jun 20 20:23:24 1994, modified Mon Jun 20 20:23:24 1994, creator 'MMCC', type ASCII, 3872 bytes "StripFile.cpp" , at 0xfa0 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MMCC] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 53 74 72 69 70 46 | 69 6c 65 2e 63 70 70 00 |..StripF|ile.cpp.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 0f 20 00 | 00 01 7e aa 2b e3 7c aa |...... .|..~.+.|.|
|00000060| 2b e3 7c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |+.|.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 3b de 00 00 |........|....;...|
|00000080| 2f 2a 09 73 74 72 69 70 | 66 69 6c 65 2e 63 70 70 |/*.strip|file.cpp|
|00000090| 0d 20 2a 0d 20 2a 09 09 | 54 68 69 73 20 63 6f 6e |. *. *..|This con|
|000000a0| 74 61 69 6e 73 20 74 68 | 65 20 61 63 74 75 61 6c |tains th|e actual|
|000000b0| 20 73 74 72 69 70 20 63 | 6f 64 65 2e 20 54 68 65 | strip c|ode. The|
|000000c0| 72 65 20 61 72 65 20 74 | 77 6f 20 76 65 72 73 69 |re are t|wo versi|
|000000d0| 6f 6e 73 20 6f 66 20 74 | 68 69 73 0d 20 2a 09 66 |ons of t|his. *.f|
|000000e0| 69 6c 65 2c 20 6f 6e 65 | 20 66 6f 72 20 74 68 65 |ile, one| for the|
|000000f0| 20 36 38 4b 20 76 65 72 | 73 69 6f 6e 2c 20 61 6e | 68K ver|sion, an|
|00000100| 64 20 6f 6e 65 20 66 6f | 72 20 74 68 65 20 50 50 |d one fo|r the PP|
|00000110| 43 20 76 65 72 73 69 6f | 6e 0d 20 2a 2f 0d 20 0d |C versio|n. */. .|
|00000120| 23 69 6e 63 6c 75 64 65 | 20 22 53 74 72 69 70 2e |#include| "Strip.|
|00000130| 68 22 0d 20 0d 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |h". ./**|********|
|00000140| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000150| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000160| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000170| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2f 0d |********|******/.|
|00000180| 2f 2a 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |/*......|........|
|00000190| 09 09 09 09 2a 2f 0d 2f | 2a 09 45 72 72 6f 72 20 |....*/./|*.Error |
|000001a0| 44 69 73 70 6c 61 79 20 | 43 6f 64 65 09 09 09 09 |Display |Code....|
|000001b0| 09 09 09 09 09 09 09 09 | 09 2a 2f 0d 2f 2a 09 09 |........|.*/./*..|
|000001c0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|000001d0| 2a 2f 0d 2f 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |*/./****|********|
|000001e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000200| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000210| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2f 0d 0d 2f |********|****/../|
|00000220| 2a 09 44 69 73 70 6c 61 | 79 41 6c 65 72 74 0d 20 |*.Displa|yAlert. |
|00000230| 2a 0d 20 2a 09 09 44 69 | 73 70 6c 61 79 20 74 68 |*. *..Di|splay th|
|00000240| 65 20 61 6c 65 72 74 2c | 20 67 69 76 65 6e 20 74 |e alert,| given t|
|00000250| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 6e |he appli|cation n|
|00000260| 61 6d 65 20 61 6e 64 20 | 6d 65 73 73 61 67 65 0d |ame and |message.|
|00000270| 20 2a 2f 0d 0d 73 74 61 | 74 69 63 20 76 6f 69 64 | */..sta|tic void|
|00000280| 20 44 69 73 70 6c 61 79 | 41 6c 65 72 74 28 46 53 | Display|Alert(FS|
|00000290| 53 70 65 63 20 2a 66 69 | 6c 65 2c 20 73 68 6f 72 |Spec *fi|le, shor|
|000002a0| 74 20 69 64 2c 20 73 68 | 6f 72 74 20 63 6f 64 65 |t id, sh|ort code|
|000002b0| 29 0d 7b 0d 09 75 6e 73 | 69 67 6e 65 64 20 63 68 |).{..uns|igned ch|
|000002c0| 61 72 20 62 75 66 66 65 | 72 5b 32 35 36 5d 3b 0d |ar buffe|r[256];.|
|000002d0| 09 75 6e 73 69 67 6e 65 | 64 20 63 68 61 72 20 63 |.unsigne|d char c|
|000002e0| 6f 64 65 53 74 72 5b 33 | 32 5d 3b 0d 09 0d 09 47 |odeStr[3|2];....G|
|000002f0| 65 74 49 6e 64 53 74 72 | 69 6e 67 28 62 75 66 66 |etIndStr|ing(buff|
|00000300| 65 72 2c 31 32 38 2c 69 | 64 29 3b 0d 09 69 66 20 |er,128,i|d);..if |
|00000310| 28 63 6f 64 65 29 20 7b | 0d 09 09 4e 75 6d 54 6f |(code) {|...NumTo|
|00000320| 53 74 72 69 6e 67 28 63 | 6f 64 65 2c 63 6f 64 65 |String(c|ode,code|
|00000330| 53 74 72 29 3b 0d 09 09 | 50 61 72 61 6d 54 65 78 |Str);...|ParamTex|
|00000340| 74 28 66 69 6c 65 2d 3e | 6e 61 6d 65 2c 62 75 66 |t(file->|name,buf|
|00000350| 66 65 72 2c 63 6f 64 65 | 53 74 72 2c 4e 55 4c 4c |fer,code|Str,NULL|
|00000360| 29 3b 0d 09 7d 20 65 6c | 73 65 20 7b 0d 09 09 50 |);..} el|se {...P|
|00000370| 61 72 61 6d 54 65 78 74 | 28 66 69 6c 65 2d 3e 6e |aramText|(file->n|
|00000380| 61 6d 65 2c 62 75 66 66 | 65 72 2c 4e 55 4c 4c 2c |ame,buff|er,NULL,|
|00000390| 4e 55 4c 4c 29 3b 0d 09 | 7d 0d 09 41 6c 65 72 74 |NULL);..|}..Alert|
|000003a0| 28 31 33 30 2c 4e 55 4c | 4c 29 3b 0d 7d 0d 20 0d |(130,NUL|L);.}. .|
|000003b0| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|000003c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0d 2f 2a 09 09 09 |********|*/./*...|
|00000400| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 2a |........|.......*|
|00000410| 2f 0d 2f 2a 09 4d 61 69 | 6e 20 65 6e 74 72 79 20 |/./*.Mai|n entry |
|00000420| 70 6f 69 6e 74 09 09 09 | 09 09 09 09 09 09 09 09 |point...|........|
|00000430| 09 09 2a 2f 0d 2f 2a 09 | 09 09 09 09 09 09 09 09 |..*/./*.|........|
|00000440| 09 09 09 09 09 09 09 09 | 09 2a 2f 0d 2f 2a 2a 2a |........|.*/./***|
|00000450| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000460| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000470| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000480| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000490| 2a 2a 2a 2a 2a 2f 0d 0d | 2f 2a 09 53 74 72 69 70 |*****/..|/*.Strip|
|000004a0| 46 69 6c 65 0d 20 2a 0d | 20 2a 09 09 44 65 74 65 |File. *.| *..Dete|
|000004b0| 72 6d 69 6e 65 20 69 66 | 20 74 68 69 73 20 66 69 |rmine if| this fi|
|000004c0| 6c 65 20 69 73 20 74 68 | 65 20 63 6f 72 72 65 63 |le is th|e correc|
|000004d0| 74 20 6f 6e 65 20 62 79 | 20 74 79 70 65 20 61 6e |t one by| type an|
|000004e0| 64 20 74 65 6d 70 65 72 | 6d 65 6e 74 3b 0d 20 2a |d temper|ment;. *|
|000004f0| 09 69 66 20 69 74 20 69 | 73 2c 20 74 68 65 6e 20 |.if it i|s, then |
|00000500| 67 6f 20 61 68 65 61 64 | 20 61 6e 64 20 73 74 72 |go ahead| and str|
|00000510| 69 70 20 74 68 65 20 63 | 6f 64 65 20 72 65 73 6f |ip the c|ode reso|
|00000520| 75 72 63 65 73 20 61 6e | 64 20 72 65 70 6c 61 63 |urces an|d replac|
|00000530| 65 20 74 68 65 6d 0d 20 | 2a 09 77 69 74 68 20 6f |e them. |*.with o|
|00000540| 6e 65 20 74 68 61 74 20 | 70 72 65 73 65 6e 74 73 |ne that |presents|
|00000550| 20 61 20 76 65 72 79 20 | 73 69 6d 70 6c 65 20 6d | a very |simple m|
|00000560| 65 73 73 61 67 65 2e 0d | 20 2a 2f 0d 0d 76 6f 69 |essage..| */..voi|
|00000570| 64 20 53 74 72 69 70 46 | 69 6c 65 28 46 53 53 70 |d StripF|ile(FSSp|
|00000580| 65 63 20 2a 66 69 6c 65 | 29 0d 7b 0d 09 46 49 6e |ec *file|).{..FIn|
|00000590| 66 6f 20 66 69 6e 66 6f | 3b 0d 09 73 68 6f 72 74 |fo finfo|;..short|
|000005a0| 20 61 70 70 52 65 66 4e | 75 6d 3b 0d 09 48 61 6e | appRefN|um;..Han|
|000005b0| 64 6c 65 20 61 6c 65 72 | 74 2c 64 69 74 6c 2c 63 |dle aler|t,ditl,c|
|000005c0| 6f 64 65 3b 0d 09 73 68 | 6f 72 74 20 6c 65 6e 2c |ode;..sh|ort len,|
|000005d0| 6f 66 66 3b 0d 09 73 68 | 6f 72 74 20 65 72 72 3b |off;..sh|ort err;|
|000005e0| 0d 09 0d 09 2f 2a 0d 09 | 20 2a 20 20 46 69 67 75 |..../*..| * Figu|
|000005f0| 72 65 20 6f 75 74 20 77 | 68 61 74 20 74 68 65 20 |re out w|hat the |
|00000600| 66 69 6c 65 20 74 79 70 | 65 20 69 73 2e 0d 09 20 |file typ|e is... |
|00000610| 2a 2f 0d 09 0d 09 69 66 | 20 28 46 48 61 73 46 53 |*/....if| (FHasFS|
|00000620| 53 70 65 63 29 20 46 53 | 70 47 65 74 46 49 6e 66 |Spec) FS|pGetFInf|
|00000630| 6f 28 66 69 6c 65 2c 26 | 66 69 6e 66 6f 29 3b 0d |o(file,&|finfo);.|
|00000640| 09 65 6c 73 65 20 48 47 | 65 74 46 49 6e 66 6f 28 |.else HG|etFInfo(|
|00000650| 66 69 6c 65 2d 3e 76 52 | 65 66 4e 75 6d 2c 66 69 |file->vR|efNum,fi|
|00000660| 6c 65 2d 3e 70 61 72 49 | 44 2c 66 69 6c 65 2d 3e |le->parI|D,file->|
|00000670| 6e 61 6d 65 2c 26 66 69 | 6e 66 6f 29 3b 0d 09 0d |name,&fi|nfo);...|
|00000680| 09 69 66 20 28 66 69 6e | 66 6f 2e 66 64 54 79 70 |.if (fin|fo.fdTyp|
|00000690| 65 20 21 3d 20 27 41 50 | 50 4c 27 29 20 7b 0d 09 |e != 'AP|PL') {..|
|000006a0| 09 44 69 73 70 6c 61 79 | 41 6c 65 72 74 28 66 69 |.Display|Alert(fi|
|000006b0| 6c 65 2c 31 2c 30 29 3b | 0d 09 09 72 65 74 75 72 |le,1,0);|...retur|
|000006c0| 6e 3b 0d 09 7d 0d 09 0d | 09 2f 2a 0d 09 20 2a 09 |n;..}...|./*.. *.|
|000006d0| 4e 6f 77 20 6f 70 65 6e | 20 74 68 69 73 20 61 70 |Now open| this ap|
|000006e0| 70 6c 69 63 61 74 69 6f | 6e 20 66 6f 72 20 6d 6f |plicatio|n for mo|
|000006f0| 64 69 66 69 63 61 74 69 | 6f 6e 2e 0d 09 20 2a 2f |dificati|on... */|
|00000700| 0d 09 0d 09 69 66 20 28 | 46 48 61 73 46 53 53 70 |....if (|FHasFSSp|
|00000710| 65 63 29 20 61 70 70 52 | 65 66 4e 75 6d 20 3d 20 |ec) appR|efNum = |
|00000720| 46 53 70 4f 70 65 6e 52 | 65 73 46 69 6c 65 28 66 |FSpOpenR|esFile(f|
|00000730| 69 6c 65 2c 66 73 52 64 | 57 72 50 65 72 6d 29 3b |ile,fsRd|WrPerm);|
|00000740| 0d 09 65 6c 73 65 20 61 | 70 70 52 65 66 4e 75 6d |..else a|ppRefNum|
|00000750| 20 3d 20 48 4f 70 65 6e | 52 65 73 46 69 6c 65 28 | = HOpen|ResFile(|
|00000760| 66 69 6c 65 2d 3e 76 52 | 65 66 4e 75 6d 2c 66 69 |file->vR|efNum,fi|
|00000770| 6c 65 2d 3e 70 61 72 49 | 44 2c 66 69 6c 65 2d 3e |le->parI|D,file->|
|00000780| 6e 61 6d 65 2c 66 73 52 | 64 57 72 50 65 72 6d 29 |name,fsR|dWrPerm)|
|00000790| 3b 0d 09 69 66 20 28 61 | 70 70 52 65 66 4e 75 6d |;..if (a|ppRefNum|
|000007a0| 20 3d 3d 20 2d 31 29 20 | 7b 0d 09 09 44 69 73 70 | == -1) |{...Disp|
|000007b0| 6c 61 79 41 6c 65 72 74 | 28 66 69 6c 65 2c 32 2c |layAlert|(file,2,|
|000007c0| 30 29 3b 0d 09 09 72 65 | 74 75 72 6e 3b 0d 09 7d |0);...re|turn;..}|
|000007d0| 0d 09 0d 09 2f 2a 0d 09 | 20 2a 20 20 49 73 20 74 |..../*..| * Is t|
|000007e0| 68 65 72 65 20 61 20 63 | 6f 64 65 20 66 72 61 67 |here a c|ode frag|
|000007f0| 6d 65 6e 74 20 72 65 73 | 6f 75 72 63 65 3f 0d 09 |ment res|ource?..|
|00000800| 20 2a 2f 0d 09 0d 09 53 | 65 74 52 65 73 4c 6f 61 | */....S|etResLoa|
|00000810| 64 28 66 61 6c 73 65 29 | 3b 0d 09 63 6f 64 65 20 |d(false)|;..code |
|00000820| 3d 20 47 65 74 31 52 65 | 73 6f 75 72 63 65 28 27 |= Get1Re|source('|
|00000830| 63 66 72 67 27 2c 30 29 | 3b 0d 09 53 65 74 52 65 |cfrg',0)|;..SetRe|
|00000840| 73 4c 6f 61 64 28 74 72 | 75 65 29 3b 0d 09 69 66 |sLoad(tr|ue);..if|
|00000850| 20 28 63 6f 64 65 20 3d | 3d 20 4e 55 4c 4c 29 20 | (code =|= NULL) |
|00000860| 7b 0d 09 09 43 6c 6f 73 | 65 52 65 73 46 69 6c 65 |{...Clos|eResFile|
|00000870| 28 61 70 70 52 65 66 4e | 75 6d 29 3b 0d 09 09 44 |(appRefN|um);...D|
|00000880| 69 73 70 6c 61 79 41 6c | 65 72 74 28 66 69 6c 65 |isplayAl|ert(file|
|00000890| 2c 35 2c 30 29 3b 0d 09 | 09 72 65 74 75 72 6e 3b |,5,0);..|.return;|
|000008a0| 0d 09 7d 20 65 6c 73 65 | 20 52 65 6c 65 61 73 65 |..} else| Release|
|000008b0| 52 65 73 6f 75 72 63 65 | 28 63 6f 64 65 29 3b 0d |Resource|(code);.|
|000008c0| 09 20 0d 09 2f 2a 0d 09 | 20 2a 20 20 44 65 74 65 |. ../*..| * Dete|
|000008d0| 72 6d 69 6e 65 20 69 66 | 20 74 68 65 20 61 6c 65 |rmine if| the ale|
|000008e0| 72 74 20 72 65 73 6f 75 | 72 63 65 73 20 74 68 61 |rt resou|rces tha|
|000008f0| 74 20 49 20 77 69 73 68 | 20 74 6f 20 63 6f 70 79 |t I wish| to copy|
|00000900| 20 61 72 65 20 61 76 61 | 69 6c 61 62 6c 65 0d 09 | are ava|ilable..|
|00000910| 20 2a 2f 0d 09 20 0d 09 | 53 65 74 52 65 73 4c 6f | */.. ..|SetResLo|
|00000920| 61 64 28 66 61 6c 73 65 | 29 3b 0d 09 63 6f 64 65 |ad(false|);..code|
|00000930| 20 3d 20 47 65 74 31 52 | 65 73 6f 75 72 63 65 28 | = Get1R|esource(|
|00000940| 27 43 4f 44 45 27 2c 30 | 29 3b 0d 09 53 65 74 52 |'CODE',0|);..SetR|
|00000950| 65 73 4c 6f 61 64 28 74 | 72 75 65 29 3b 0d 09 69 |esLoad(t|rue);..i|
|00000960| 66 20 28 63 6f 64 65 20 | 3d 3d 20 4e 55 4c 4c 29 |f (code |== NULL)|
|00000970| 20 7b 0d 09 09 43 6c 6f | 73 65 52 65 73 46 69 6c | {...Clo|seResFil|
|00000980| 65 28 61 70 70 52 65 66 | 4e 75 6d 29 3b 0d 09 09 |e(appRef|Num);...|
|00000990| 44 69 73 70 6c 61 79 41 | 6c 65 72 74 28 66 69 6c |DisplayA|lert(fil|
|000009a0| 65 2c 34 2c 30 29 3b 0d | 09 09 72 65 74 75 72 6e |e,4,0);.|..return|
|000009b0| 3b 0d 09 7d 20 65 6c 73 | 65 20 52 65 6c 65 61 73 |;..} els|e Releas|
|000009c0| 65 52 65 73 6f 75 72 63 | 65 28 63 6f 64 65 29 3b |eResourc|e(code);|
|000009d0| 0d 09 0d 09 53 65 74 52 | 65 73 4c 6f 61 64 28 66 |....SetR|esLoad(f|
|000009e0| 61 6c 73 65 29 3b 0d 09 | 61 6c 65 72 74 20 3d 20 |alse);..|alert = |
|000009f0| 47 65 74 31 52 65 73 6f | 75 72 63 65 28 27 41 4c |Get1Reso|urce('AL|
|00000a00| 52 54 27 2c 32 37 33 30 | 39 29 3b 0d 09 53 65 74 |RT',2730|9);..Set|
|00000a10| 52 65 73 4c 6f 61 64 28 | 74 72 75 65 29 3b 0d 09 |ResLoad(|true);..|
|00000a20| 69 66 20 28 61 6c 65 72 | 74 20 21 3d 20 4e 55 4c |if (aler|t != NUL|
|00000a30| 4c 29 20 7b 0d 09 09 52 | 65 6c 65 61 73 65 52 65 |L) {...R|eleaseRe|
|00000a40| 73 6f 75 72 63 65 28 61 | 6c 65 72 74 29 3b 0d 09 |source(a|lert);..|
|00000a50| 09 43 6c 6f 73 65 52 65 | 73 46 69 6c 65 28 61 70 |.CloseRe|sFile(ap|
|00000a60| 70 52 65 66 4e 75 6d 29 | 3b 0d 09 09 44 69 73 70 |pRefNum)|;...Disp|
|00000a70| 6c 61 79 41 6c 65 72 74 | 28 66 69 6c 65 2c 33 2c |layAlert|(file,3,|
|00000a80| 30 29 3b 0d 09 09 72 65 | 74 75 72 6e 3b 0d 09 7d |0);...re|turn;..}|
|00000a90| 0d 09 53 65 74 52 65 73 | 4c 6f 61 64 28 66 61 6c |..SetRes|Load(fal|
|00000aa0| 73 65 29 3b 0d 09 64 69 | 74 6c 20 3d 20 47 65 74 |se);..di|tl = Get|
|00000ab0| 31 52 65 73 6f 75 72 63 | 65 28 27 44 49 54 4c 27 |1Resourc|e('DITL'|
|00000ac0| 2c 32 37 33 30 39 29 3b | 0d 09 53 65 74 52 65 73 |,27309);|..SetRes|
|00000ad0| 4c 6f 61 64 28 74 72 75 | 65 29 3b 0d 09 69 66 20 |Load(tru|e);..if |
|00000ae0| 28 64 69 74 6c 20 21 3d | 20 4e 55 4c 4c 29 20 7b |(ditl !=| NULL) {|
|00000af0| 0d 09 09 52 65 6c 65 61 | 73 65 52 65 73 6f 75 72 |...Relea|seResour|
|00000b00| 63 65 28 64 69 74 6c 29 | 3b 0d 09 09 43 6c 6f 73 |ce(ditl)|;...Clos|
|00000b10| 65 52 65 73 46 69 6c 65 | 28 61 70 70 52 65 66 4e |eResFile|(appRefN|
|00000b20| 75 6d 29 3b 0d 09 09 44 | 69 73 70 6c 61 79 41 6c |um);...D|isplayAl|
|00000b30| 65 72 74 28 66 69 6c 65 | 2c 33 2c 30 29 3b 0d 09 |ert(file|,3,0);..|
|00000b40| 09 72 65 74 75 72 6e 3b | 0d 09 7d 0d 09 0d 09 2f |.return;|..}..../|
|00000b50| 2a 0d 09 20 2a 20 20 54 | 69 6d 65 20 74 6f 20 64 |*.. * T|ime to d|
|00000b60| 6f 20 74 68 65 20 66 69 | 78 75 70 0d 09 20 2a 2f |o the fi|xup.. */|
|00000b70| 0d 09 0d 09 6c 65 6e 20 | 3d 20 43 6f 75 6e 74 31 |....len |= Count1|
|00000b80| 52 65 73 6f 75 72 63 65 | 73 28 27 43 4f 44 45 27 |Resource|s('CODE'|
|00000b90| 29 3b 0d 09 66 6f 72 20 | 28 6f 66 66 20 3d 20 6c |);..for |(off = l|
|00000ba0| 65 6e 3b 20 6f 66 66 20 | 3e 20 30 3b 20 6f 66 66 |en; off |> 0; off|
|00000bb0| 2d 2d 29 20 7b 0d 09 09 | 53 65 74 52 65 73 4c 6f |--) {...|SetResLo|
|00000bc0| 61 64 28 66 61 6c 73 65 | 29 3b 0d 09 09 63 6f 64 |ad(false|);...cod|
|00000bd0| 65 20 3d 20 47 65 74 31 | 49 6e 64 52 65 73 6f 75 |e = Get1|IndResou|
|00000be0| 72 63 65 28 27 43 4f 44 | 45 27 2c 6f 66 66 29 3b |rce('COD|E',off);|
|00000bf0| 0d 09 09 53 65 74 52 65 | 73 4c 6f 61 64 28 74 72 |...SetRe|sLoad(tr|
|00000c00| 75 65 29 3b 0d 09 09 53 | 65 74 52 65 73 41 74 74 |ue);...S|etResAtt|
|00000c10| 72 73 28 63 6f 64 65 2c | 30 29 3b 0d 09 09 52 65 |rs(code,|0);...Re|
|00000c20| 6d 6f 76 65 52 65 73 6f | 75 72 63 65 28 63 6f 64 |moveReso|urce(cod|
|00000c30| 65 29 3b 09 09 09 09 09 | 2f 2f 20 52 65 6d 6f 76 |e);.....|// Remov|
|00000c40| 65 20 66 72 6f 6d 20 74 | 68 69 73 20 6f 6e 65 0d |e from t|his one.|
|00000c50| 09 09 69 66 20 28 30 20 | 21 3d 20 28 65 72 72 20 |..if (0 |!= (err |
|00000c60| 3d 20 52 65 73 45 72 72 | 6f 72 28 29 29 29 20 7b |= ResErr|or())) {|
|00000c70| 0d 09 09 09 43 6c 6f 73 | 65 52 65 73 46 69 6c 65 |....Clos|eResFile|
|00000c80| 28 61 70 70 52 65 66 4e | 75 6d 29 3b 0d 09 09 09 |(appRefN|um);....|
|00000c90| 44 69 73 70 6c 61 79 41 | 6c 65 72 74 28 66 69 6c |DisplayA|lert(fil|
|00000ca0| 65 2c 36 2c 65 72 72 29 | 3b 0d 09 09 09 72 65 74 |e,6,err)|;....ret|
|00000cb0| 75 72 6e 3b 0d 09 09 7d | 0d 09 09 44 69 73 70 6f |urn;...}|...Dispo|
|00000cc0| 73 65 48 61 6e 64 6c 65 | 28 63 6f 64 65 29 3b 0d |seHandle|(code);.|
|00000cd0| 09 7d 0d 09 0d 09 61 6c | 65 72 74 20 3d 20 47 65 |.}....al|ert = Ge|
|00000ce0| 74 52 65 73 6f 75 72 63 | 65 28 27 41 4c 52 54 27 |tResourc|e('ALRT'|
|00000cf0| 2c 32 37 33 30 39 29 3b | 09 09 09 2f 2f 20 50 75 |,27309);|...// Pu|
|00000d00| 6c 6c 20 69 74 20 66 72 | 6f 6d 20 6d 65 0d 09 44 |ll it fr|om me..D|
|00000d10| 65 74 61 63 68 52 65 73 | 6f 75 72 63 65 28 61 6c |etachRes|ource(al|
|00000d20| 65 72 74 29 3b 0d 09 41 | 64 64 52 65 73 6f 75 72 |ert);..A|ddResour|
|00000d30| 63 65 28 61 6c 65 72 74 | 2c 27 41 4c 52 54 27 2c |ce(alert|,'ALRT',|
|00000d40| 32 37 33 30 39 2c 22 5c | 70 41 64 64 65 64 20 62 |27309,"\|pAdded b|
|00000d50| 79 20 53 74 72 69 70 36 | 38 4b 22 29 3b 0d 09 57 |y Strip6|8K");..W|
|00000d60| 72 69 74 65 52 65 73 6f | 75 72 63 65 28 61 6c 65 |riteReso|urce(ale|
|00000d70| 72 74 29 3b 0d 09 52 65 | 6c 65 61 73 65 52 65 73 |rt);..Re|leaseRes|
|00000d80| 6f 75 72 63 65 28 61 6c | 65 72 74 29 3b 0d 09 0d |ource(al|ert);...|
|00000d90| 09 64 69 74 6c 20 3d 20 | 47 65 74 52 65 73 6f 75 |.ditl = |GetResou|
|00000da0| 72 63 65 28 27 44 49 54 | 4c 27 2c 32 37 33 30 39 |rce('DIT|L',27309|
|00000db0| 29 3b 0d 09 44 65 74 61 | 63 68 52 65 73 6f 75 72 |);..Deta|chResour|
|00000dc0| 63 65 28 64 69 74 6c 29 | 3b 0d 09 41 64 64 52 65 |ce(ditl)|;..AddRe|
|00000dd0| 73 6f 75 72 63 65 28 64 | 69 74 6c 2c 27 44 49 54 |source(d|itl,'DIT|
|00000de0| 4c 27 2c 32 37 33 30 39 | 2c 22 5c 70 41 64 64 65 |L',27309|,"\pAdde|
|00000df0| 64 20 62 79 20 53 74 72 | 69 70 36 38 4b 22 29 3b |d by Str|ip68K");|
|00000e00| 0d 09 57 72 69 74 65 52 | 65 73 6f 75 72 63 65 28 |..WriteR|esource(|
|00000e10| 61 6c 65 72 74 29 3b 0d | 09 52 65 6c 65 61 73 65 |alert);.|.Release|
|00000e20| 52 65 73 6f 75 72 63 65 | 28 61 6c 65 72 74 29 3b |Resource|(alert);|
|00000e30| 0d 09 0d 09 63 6f 64 65 | 20 3d 20 47 65 74 52 65 |....code| = GetRe|
|00000e40| 73 6f 75 72 63 65 28 27 | 63 36 38 4b 27 2c 31 32 |source('|c68K',12|
|00000e50| 38 29 3b 0d 09 44 65 74 | 61 63 68 52 65 73 6f 75 |8);..Det|achResou|
|00000e60| 72 63 65 28 63 6f 64 65 | 29 3b 0d 09 41 64 64 52 |rce(code|);..AddR|
|00000e70| 65 73 6f 75 72 63 65 28 | 63 6f 64 65 2c 27 43 4f |esource(|code,'CO|
|00000e80| 44 45 27 2c 30 2c 22 5c | 70 41 64 64 65 64 20 62 |DE',0,"\|pAdded b|
|00000e90| 79 20 53 74 72 69 70 36 | 38 4b 22 29 3b 0d 09 57 |y Strip6|8K");..W|
|00000ea0| 72 69 74 65 52 65 73 6f | 75 72 63 65 28 63 6f 64 |riteReso|urce(cod|
|00000eb0| 65 29 3b 0d 09 52 65 6c | 65 61 73 65 52 65 73 6f |e);..Rel|easeReso|
|00000ec0| 75 72 63 65 28 63 6f 64 | 65 29 3b 0d 09 0d 09 63 |urce(cod|e);....c|
|00000ed0| 6f 64 65 20 3d 20 47 65 | 74 52 65 73 6f 75 72 63 |ode = Ge|tResourc|
|00000ee0| 65 28 27 63 36 38 4b 27 | 2c 31 32 39 29 3b 0d 09 |e('c68K'|,129);..|
|00000ef0| 44 65 74 61 63 68 52 65 | 73 6f 75 72 63 65 28 63 |DetachRe|source(c|
|00000f00| 6f 64 65 29 3b 0d 09 41 | 64 64 52 65 73 6f 75 72 |ode);..A|ddResour|
|00000f10| 63 65 28 63 6f 64 65 2c | 27 43 4f 44 45 27 2c 31 |ce(code,|'CODE',1|
|00000f20| 2c 22 5c 70 41 64 64 65 | 64 20 62 79 20 53 74 72 |,"\pAdde|d by Str|
|00000f30| 69 70 36 38 4b 22 29 3b | 0d 09 57 72 69 74 65 52 |ip68K");|..WriteR|
|00000f40| 65 73 6f 75 72 63 65 28 | 63 6f 64 65 29 3b 0d 09 |esource(|code);..|
|00000f50| 52 65 6c 65 61 73 65 52 | 65 73 6f 75 72 63 65 28 |ReleaseR|esource(|
|00000f60| 63 6f 64 65 29 3b 0d 09 | 0d 09 55 70 64 61 74 65 |code);..|..Update|
|00000f70| 52 65 73 46 69 6c 65 28 | 61 70 70 52 65 66 4e 75 |ResFile(|appRefNu|
|00000f80| 6d 29 3b 0d 09 43 6c 6f | 73 65 52 65 73 46 69 6c |m);..Clo|seResFil|
|00000f90| 65 28 61 70 70 52 65 66 | 4e 75 6d 29 3b 0d 7d 0d |e(appRef|Num);.}.|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 08 00 00 00 18 00 00 |........|........|
|00001030| 0d 53 74 72 69 70 46 69 | 6c 65 2e 63 70 70 02 00 |.StripFi|le.cpp..|
|00001040| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00001050| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 aa 54 0c 83 00 00 | 00 00 00 00 01 7e 00 01 |...T....|.....~..|
|00001080| 10 22 00 01 00 02 00 00 | 00 00 80 00 00 00 00 00 |."......|........|
|00001090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 ff c0 00 00 |........|........|
|000010b0| 80 60 00 00 82 50 00 00 | 87 48 00 00 82 44 00 00 |.`...P..|.H...D..|
|000010c0| 82 7e 00 00 82 02 00 00 | 82 02 00 00 82 02 00 00 |.~......|........|
|000010d0| 92 12 00 00 bf fa 00 00 | 92 12 00 00 82 02 00 00 |........|........|
|000010e0| 82 02 00 0f 87 03 e0 08 | 82 02 20 08 80 02 38 08 |........|.. ...8.|
|000010f0| ff fe 28 08 00 00 28 08 | 00 00 28 08 00 00 38 08 |..(...(.|..(...8.|
|00001100| 00 00 00 48 00 09 50 72 | 6f 67 72 61 6d 00 00 00 |...H..Pr|ogram...|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 03 | 00 04 00 46 01 41 02 52 |........|...F.A.R|
|00001130| 03 3a 00 46 01 41 02 52 | 03 3a aa 2b 9d 4f 00 00 |.:.F.A.R|.:.+.O..|
|00001140| 0b 9c 00 00 0b 9c 00 00 | 09 ea 01 00 00 00 01 00 |........|........|
|00001150| 00 00 01 4c 00 00 00 4c | 00 00 00 32 01 2d 2f f8 |...L...L|...2.-/.|
|00001160| 17 e0 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00001170| 00 0a 03 ed ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+